@@ -26,9 +26,9 @@ class Command(CompatibilityBaseCommand):  | 
            ||
| 26 | 26 | 
                month = tc.local_string(format='%Y%m')  | 
            
| 27 | 27 | 
                day = tc.local_string(format='%Y%m%d')  | 
            
| 28 | 28 | 
                 | 
            
| 29 | 
                - # lastyear = tc.local_string(tc.several_time_ago(years=1), format='%Y')  | 
            |
| 30 | 
                - lastmonth = tc.local_string(tc.several_time_ago(months=1), format='%Y%m')  | 
            |
| 31 | 
                - lastday = tc.local_string(tc.several_time_ago(days=1), format='%Y%m%d')  | 
            |
| 29 | 
                + # lastyear = tc.local_string(years=-1, format='%Y')  | 
            |
| 30 | 
                + lastmonth = tc.local_string(months=-1, format='%Y%m')  | 
            |
| 31 | 
                + lastday = tc.local_string(days=-1, format='%Y%m%d')  | 
            |
| 32 | 32 | 
                 | 
            
| 33 | 33 | 
                brands = BrandInfo.objects.filter(status=True)  | 
            
| 34 | 34 | 
                 | 
            
                @@ -350,9 +350,9 @@ def v2_tj_distributor(request):  | 
            ||
| 350 | 350 | 
                month = tc.local_string(format='%Y%m')  | 
            
| 351 | 351 | 
                day = tc.local_string(format='%Y%m%d')  | 
            
| 352 | 352 | 
                 | 
            
| 353 | 
                - # lastyear = tc.local_string(tc.several_time_ago(years=1), format='%Y')  | 
            |
| 354 | 
                - lastmonth = tc.local_string(tc.several_time_ago(months=1), format='%Y%m')  | 
            |
| 355 | 
                - lastday = tc.local_string(tc.several_time_ago(days=1), format='%Y%m%d')  | 
            |
| 353 | 
                + # lastyear = tc.local_string(years=-1, format='%Y')  | 
            |
| 354 | 
                + lastmonth = tc.local_string(months=-1, format='%Y%m')  | 
            |
| 355 | 
                + lastday = tc.local_string(days=-1, format='%Y%m%d')  | 
            |
| 356 | 356 | 
                 | 
            
| 357 | 357 | 
                year_data = ytj(brand_id)  | 
            
| 358 | 358 | 
                month_data = ymdtj(brand_id, month, lastmonth)  |